﻿using System;
using ExFlash.Records;

namespace ExFlash.Tags
{
    class DefineScalingGridTag : Tag
    {
        public ushort CharacterId
        {
            get;
            private set;
        }

        public RectangleRecord Splitter
        {
            get;
            private set;
        }

        public DefineScalingGridTag(int len, Int32 offset)
            : base(TagCodes.DefineScalingGrid, len, offset)
        {

        }

        public override void SwfDeserialize(BinaryBitReader reader)
        {
            CharacterId = reader.ReadUInt16();

            Splitter = new RectangleRecord();
            Splitter.SwfDeserialize(reader);
        }

        public override void SwfSerialize(byte[] arr, ref int offset)
        {
            throw new NotImplementedException();
        }
    }
}
